package com.itheima.d02_io_char_weiter;

import java.io.FileWriter;
import java.io.IOException;

public class Test {
    public static void main(String[] args) throws Exception {
        // 创建字符输出流
        try( java.io.FileWriter fw = new FileWriter("D:\\javabase_ws\\javaAdvanceProject\\day11_io\\src\\com\\itheima\\d02_io_char_weiter\\kunkunai.txt");) {

            //调用方法，把数据写入到文件中
            fw.write("hello,kunkun");

        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
